package edu.buffalo.cse.cse486_586.simpledht.entity;

import edu.buffalo.cse.cse486_586.util.AppUtil;

public class KeyValuePair {
	private int id;
	private String key;
	private String value;

	public KeyValuePair() {
	}

	public KeyValuePair(String key, String value) {
		this.key = key;
		this.value = value;
	}

	public KeyValuePair(int id, String key, String value) {
		this.id = id;
		this.key = key;
		this.value = value;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(this.key).append(AppUtil.DELIMITER).append(this.value);
		return sb.toString();
	}
}
